package com.tbit.uqbike.object.pojo;

import com.tbit.uqbike.webmanager.util.DateUtils;
import lombok.Data;

/**
 * 挪车配置
 *
 * @author Leon
 * 2020年4月8日 下午2:54:15
 */
@Data
public class MoveConfig {
    /**
     * 运营区域id
     */
    private Integer accountId;
    /**
     * 挪车距离
     */
    private Integer moveDistance;
    /**
     * 是否允许同站点
     */
    private Integer sameParkPoint;
    /**
     * 是否清空闲置时长
     */
    private Integer clearLastBorrowTime;
    /**
     * 更新时间
     */
    private String updateTime;
    /**挪车后是否在站点内，0-不开启；1-开启*/
    private Integer moveAfterInPark;
    /**几小时有订单*/
    private Integer rideTime;
    /**上次挪车后骑行距离(米)*/
    private Integer lastMoveRideDistance;
    /**上次挪车后间隔时间(分钟)*/
    private Integer lastMoveIntervalTime;
    /**0-满足全部  1-满足一个*/
    private Integer conditionType;
    /**已选中条件的下标 根据页面对应：挪车前是否在站外/超区-0；上次挪车后产生有效订单-1；上次挪车后骑行xx米-2；上次挪车后经过xx分钟-3*/
    private String checkedCondition;

    public MoveConfig(Integer accountId) {
        this.accountId = accountId;
        this.moveDistance = 200;
        this.sameParkPoint = 1;
        this.clearLastBorrowTime = 1;
        this.updateTime = DateUtils.getTime();
        this.moveAfterInPark = 0;
        this.rideTime = 0;
        this.lastMoveRideDistance = 0;
        this.lastMoveIntervalTime = 0;
        this.conditionType = 0;
    }

    public MoveConfig() {
    }

}
